package com.example.healthcondition.mapper;
import com.example.healthcondition.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Optional;

@Mapper
public interface UserMapper {
    @Select("SELECT * FROM users WHERE username = #{username}")
    Optional<User> findByUsername(String username);
}
